<template>
  <el-config-provider :locale="zhCn">
    <router-view />
  </el-config-provider>
</template>

<script setup lang="ts">
import { ElConfigProvider } from 'element-plus';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import { useDictStore } from './store/dict';

const { fetchDictData } = useDictStore();

onMounted(fetchDictData);
</script>
